<?php

class UserController extends Controller
{
    public function index()
    {
        $db = DB::table('user');
        $this->assign('list', $db->select());
        $this->display('User/index.html');
    }

    public function add()
    {
        echo '添加用户!';
    }

    public function show()
    {
        $db = DB::table('user');
        var_dump($db->select());
    }
}